package com.j.lemon.learn;

import com.baomidou.mybatisplus.extension.api.R;
import com.google.common.cache.RemovalListener;
import com.google.common.cache.RemovalNotification;

/**
 * @Author lijunjun
 * @Date 2020/9/13 15:51
 * @Descriptio*/
public class CacheExpireListener implements RemovalListener<String,String> {

    @Override
    public void onRemoval(RemovalNotification<String, String> notification) {
        System.out.println(notification.wasEvicted());
        System.out.println(notification.getKey());
        System.out.println(notification.getValue());
    }
}
